<?php
require_once '../core/google/auxiliar_api.php';
$coordenadas = new Aux_Api();
$lista = array("111,111","222,222","333,333");
$variable_php = $coordenadas->juntar_coordenadas($lista);
echo $variable_php,"<br>";
?>
<script>
var variable_javascrip = "<?php echo $variable_php;?>";
document.write(variable_javascrip);
	</script>